main()
{
    int n,a,b;
    printf("There are fllowing numbers with 4digits satisfied condition:\n");
    for(n=1000;n<100000;n++)
{
a=n/100;
b=n%100;
if((a+b)*(a+b)==n)
printf("%d",n);
}
}